package com.accp.hib;

/**
 * ReplyId entity. @author MyEclipse Persistence Tools
 */

public class ReplyId implements java.io.Serializable {

	// Fields

	private Integer replyId;
	private String title;
	private String content;
	private String publishTime;
	private Users users;
	private Tip tip;
	private String realFile;
	private String makeFile;

	// Constructors

	/** default constructor */
	public ReplyId() {
	}

	/** minimal constructor */
	public ReplyId(Integer replyId, String title, String content,
			String publishTime) {
		this.replyId = replyId;
		this.title = title;
		this.content = content;
		this.publishTime = publishTime;
	}

	/** full constructor */
	public ReplyId(Integer replyId, String title, String content,
			String publishTime, Users users, Tip tip, String realFile,
			String makeFile) {
		this.replyId = replyId;
		this.title = title;
		this.content = content;
		this.publishTime = publishTime;
		this.users = users;
		this.tip = tip;
		this.realFile = realFile;
		this.makeFile = makeFile;
	}

	// Property accessors

	public Integer getReplyId() {
		return this.replyId;
	}

	public void setReplyId(Integer replyId) {
		this.replyId = replyId;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPublishTime() {
		return this.publishTime;
	}

	public void setPublishTime(String publishTime) {
		this.publishTime = publishTime;
	}

	public Users getUsers() {
		return this.users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public Tip getTip() {
		return this.tip;
	}

	public void setTip(Tip tip) {
		this.tip = tip;
	}

	public String getRealFile() {
		return this.realFile;
	}

	public void setRealFile(String realFile) {
		this.realFile = realFile;
	}

	public String getMakeFile() {
		return this.makeFile;
	}

	public void setMakeFile(String makeFile) {
		this.makeFile = makeFile;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ReplyId))
			return false;
		ReplyId castOther = (ReplyId) other;

		return ((this.getReplyId() == castOther.getReplyId()) || (this
				.getReplyId() != null
				&& castOther.getReplyId() != null && this.getReplyId().equals(
				castOther.getReplyId())))
				&& ((this.getTitle() == castOther.getTitle()) || (this
						.getTitle() != null
						&& castOther.getTitle() != null && this.getTitle()
						.equals(castOther.getTitle())))
				&& ((this.getContent() == castOther.getContent()) || (this
						.getContent() != null
						&& castOther.getContent() != null && this.getContent()
						.equals(castOther.getContent())))
				&& ((this.getPublishTime() == castOther.getPublishTime()) || (this
						.getPublishTime() != null
						&& castOther.getPublishTime() != null && this
						.getPublishTime().equals(castOther.getPublishTime())))
				&& ((this.getUsers() == castOther.getUsers()) || (this
						.getUsers() != null
						&& castOther.getUsers() != null && this.getUsers()
						.equals(castOther.getUsers())))
				&& ((this.getTip() == castOther.getTip()) || (this.getTip() != null
						&& castOther.getTip() != null && this.getTip().equals(
						castOther.getTip())))
				&& ((this.getRealFile() == castOther.getRealFile()) || (this
						.getRealFile() != null
						&& castOther.getRealFile() != null && this
						.getRealFile().equals(castOther.getRealFile())))
				&& ((this.getMakeFile() == castOther.getMakeFile()) || (this
						.getMakeFile() != null
						&& castOther.getMakeFile() != null && this
						.getMakeFile().equals(castOther.getMakeFile())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getReplyId() == null ? 0 : this.getReplyId().hashCode());
		result = 37 * result
				+ (getTitle() == null ? 0 : this.getTitle().hashCode());
		result = 37 * result
				+ (getContent() == null ? 0 : this.getContent().hashCode());
		result = 37
				* result
				+ (getPublishTime() == null ? 0 : this.getPublishTime()
						.hashCode());
		result = 37 * result
				+ (getUsers() == null ? 0 : this.getUsers().hashCode());
		result = 37 * result
				+ (getTip() == null ? 0 : this.getTip().hashCode());
		result = 37 * result
				+ (getRealFile() == null ? 0 : this.getRealFile().hashCode());
		result = 37 * result
				+ (getMakeFile() == null ? 0 : this.getMakeFile().hashCode());
		return result;
	}

}